package com.douqu.game.core.e;

/**
 * Created by bean on 2017/9/15.
 */
public enum E_BattleEnd implements BaseEnum {

    END_ERROR(-1, "已经结束或者还没开始"),
    NOT_END(0, "没有结束"),
    DEFAULT(1,"主将死亡"),
    TIME_END(2,"时间到了"),
    SOLDIER_ZERO(3,"没有兵了"),
    OFFLINE(4,"掉线"),
    SURRENDER(5,"投降"),
    OVERDUE(6,"超时")
    ;

    int code;

    String msg;

    E_BattleEnd(int code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
